﻿using DevTeam;
using System;
namespace ConfExpert.Forms.Rapor
{
    public partial class xrGenelStok : DevExpress.XtraReports.UI.XtraReport
    {
        public xrGenelStok()
        {

            InitializeComponent();
            cellTarih.Text = DateTime.Now.ToShortDateString();
            ds = Session.DataManager.ExecuteDataSet("getGenelStok");
        }

        private void Detail_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            this.DataMember = "Table";
            this.DataSource = ds;
            detailMusteri.DataBindings.Add("Text", null, "Table.Musteri");
            detailToplam.DataBindings.Add("Text", null, "Table.GenelToplam", "{0:n0}");
            detailRezerve.DataBindings.Add("Text", null, "Table.ToplamRezerve", "{0:n0}");
            detailIdle.DataBindings.Add("Text", null, "Table.ToplamIdle", "{0:n0}");
            detailKumasAdedi.DataBindings.Add("Text", null, "Table.KumasAdedi", "{0:n0}");
            detailTopAdedi.DataBindings.Add("Text", null, "Table.TopAdedi", "{0:n0}");
        }
    }
}
